﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OtherUnitySamples
{
    public  class LoggingTenantStore:ITenant
    {
        private readonly ITenant tenantStore;
        private readonly ILogger logger;
        public LoggingTenantStore(ITenant tenantstore, ILogger logger)
        {
            this.tenantStore = tenantstore;
            this.logger = logger;
        }


        public void Initialize()
        {
            throw new NotImplementedException();
        }

        public Tenant GetTenant(string tenant)
        {
            logger.LogMessage("getTenants");
            return tenantStore.GetTenant(tenant);
        }

        public IEnumerable<string> GetTenantNames()
        {
            throw new NotImplementedException();
        }

        public void SaveTenant(Tenant tenant)
        {
            throw new NotImplementedException();
        }

        public void UploadLogo(string tenant, byte[] logo)
        {
            throw new NotImplementedException();
        }
    }
}
